package bist.believeinstep.logic;

import java.util.List;

import bist.believeinstep.domain.Image;
import bist.believeinstep.impl.ImageTemplate;
import bist.believeinstep.util.Util;

public class ImageService {
	private ImageTemplate imageTempalte;
	
	public ImageService(){
		imageTempalte = (ImageTemplate)Util.getConnection("imageTemplate");
	}
	
	public void create(Image image){
		imageTempalte.create(image);
	}
	public void update(Image image){
		imageTempalte.update(image);
	}
	public void delete(Integer id){
		imageTempalte.delete(id);
	}
	public Image getImage(Integer id){
		return imageTempalte.getImage(id);
	}
	public Image getImage(String name){
		return imageTempalte.getImage(name);
	}
	public List<Image> list(){
		return imageTempalte.list();
	}
}
